package com.zz.cc.owner.view;

import com.zz.cc.owner.R;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.RelativeLayout;
import android.widget.TextView;

public class SummaryView extends RelativeLayout{
	
	private TextView mBasicInfoTextView;
	private TextView mIntroduceTextView;

	public SummaryView(Context context) {
		super(context);
	}

	public SummaryView(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	public SummaryView(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
	}
	
	public void setBasicInfo(String baseInfo) {
		mBasicInfoTextView.setText(baseInfo);
	}
	
	public void setIntroduce(String introduce) {
		mIntroduceTextView.setText(introduce);
	}
	
	@Override
	public void onFinishInflate() {
		super.onFinishInflate();
		mBasicInfoTextView = (TextView) findViewById(R.id.summary_basic_info);
		mIntroduceTextView = (TextView) findViewById(R.id.summary_introduce);
	}

}
